/** @odoo-module **/
import { Dialog } from "@web/core/dialog/dialog";
import {EventBus, Component, onMounted, mount, xml, useEnv, App, reactive, useState,useRef } from "@odoo/owl";
 
import { DateTimeField } from "@web/views/fields/datetime/datetime_field";


export class bootsrap001 extends Component {

    static template = "bootsrap001";
 
setup() {
    this.ref1 = useRef("abc001");
    onMounted(() => {
     
 
        const btn = this.ref1.el
        console.log(btn);
        if (btn && window.bootstrap) {
            // 初始化 Popover
            new window.bootstrap.Popover(btn);
        } else {
            console.warn("bootstrap.Popover 没有找到！");
        }

  

    });
}



}
bootsrap001.components = {
  Dialog
  };
  bootsrap001.props =  {"*":true} 
  DateTimeField.props =  {"*":true}